<?php /* Smarty version 2.6.18, created on 2016-12-12 23:08:14
         compiled from notice/common.issue.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">    
				   <a href="index.php?a=notice.commonlist" class="btn btn-default">通 知</a>
				   <?php if ($this->_tpl_vars['appoint_lists'] == 1): ?><?php else: ?>
				   <a href="index.php?a=notice.commonissuelist" class="btn btn-primary">发布通知</a>
				   <?php endif; ?>
				   <a href="index.php?a=notice.commonadd&notice_type=3" class="btn btn-primary btn-sm" style="float:right; color:#fff;">通知发布</a>
                </div>
                <div class="box-body">
                    <div class="col-md-3 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-3 control-label text-right" style="padding:0;font-weight:500; margin:0;">
							   标题：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							    <input type="text" class="form-control" name="notice_title" value="<?php echo $this->_tpl_vars['notice_title']; ?>
">
						  </div> 
				    </div>

					<div class="col-md-2 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-6 control-label text-right" style="padding:0;font-weight:500; margin:0;">
							   发布部门：
						  </label>
						  <div class="input-group col-md-6 col-xs-12">
							    <select class="form-control" name="department_id" style="padding:0;">
								<option value="">全部</option>
								<?php $_from = $this->_tpl_vars['department_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
										<option value="<?php echo $this->_tpl_vars['value']['department_id']; ?>
"<?php if ($this->_tpl_vars['value']['department_id'] == $this->_tpl_vars['department_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['department_name']; ?>
</option>
											
								<?php endforeach; endif; unset($_from); ?>
								</select> 
						  </div> 
				    </div>
					<div class="col-md-6 col-xs-12 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding:0;font-weight:500; margin:0;">
							 发布时间：
						  </label>
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['from']; ?>
" id="from" name="from">
							     <div class="input-group-addon" style="padding:6px 7px;">
									<i class="fa fa-calendar"></i>
								 </div>
						  </div>
						  <span style="float:left;">  ~  </span >
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['to']; ?>
" id="to" name="to">
							      <div class="input-group-addon" style="padding:6px 7px;">
									 <i class="fa fa-calendar"></i>
								 </div>
						  </div>						  
				    </div>
					<div class="col-md-1 col-xs-12">
					  
					   <input type="hidden" name="a" value="notice.presidentlist">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					<div style="clear:both; height:10px;"></div>

                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style=" background-color:#a273ff;">
                                        <td>标题</td>
										<td>发布部门</td>

                                        <td>发布时间</td>
										<td>审核状态</td>
                                        <td width="110">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								<?php $_from = $this->_tpl_vars['notice_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><a href="index.php?a=notice.commonissuedetails&notice_id=<?php echo $this->_tpl_vars['value']['notice_id']; ?>
"><?php echo $this->_tpl_vars['value']['notice_title']; ?>
</a></td>
                                        <td><?php echo $this->_tpl_vars['value']['department_name']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['start_time']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['is_show']; ?>
</td>
                                        <td>
                                             <a class="btn btn-success btn-sm" href="index.php?a=notice.commonissuedetails&notice_id=<?php echo $this->_tpl_vars['value']['notice_id']; ?>
" title="查 看"><i class="fa fa-search"></i></a>
											 
											  </span>
                                        </td>
                                    </tr>	
                                <?php endforeach; endif; unset($_from); ?>   
                            </tbody>
                        </table>
				   </div><!--box-body -->
				   <div class="box-footer">
				   <?php echo $this->_tpl_vars['page']; ?>

				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 
 <script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>